//
//  CalenderAvailabilityResModel.swift
//  koolcar
//
//  Created by xiantian on 2023/11/20.
//

import UIKit
import ObjectMapper

class CalenderAvailabilityResModel: Mappable {
    var code: String?
    var msg: String?
    var data: [CalenderAvailabilityDataModel]?
    var extData: CalenderExtDataModel?
    func mapping(map: Map) {
        code <- map["code"]
        msg <- map["msg"]
        data <- map["data"]
        extData <- map["extData"]
    }
    required init?(map: Map) {
    }
}


class CalenderExtDataModel: Mappable {
    var isOpen: NSInteger?
    var bookDay: NSInteger?
    func mapping(map: Map) {
        isOpen <- map["isOpen"]
        bookDay <- map["bookDay"]
    }
    required init?(map: Map) {
    }
}

class CalenderAvailabilityDataModel: Mappable {
    var currentQuantity : Int?
    var joinDate : String?
    var quantity : Int?
    var status : Int?
    func mapping(map: Map) {
        currentQuantity <- map["currentQuantity"]
        joinDate <- map["joinDate"]
        quantity <- map["quantity"]
        status <- map["status"]
    }
    required init?(map: Map) {
    }
    
}
